import Layout from '@/view/layout'

const articleRouter = {
  path: '/article',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Article',
  meta: {
    title: 'Article',
    // icon: 'chart'
  },
  children: [
    {
      path: '',
      component: () => import('@/view/article/index'),
      name: '文章列表',
      meta: { title: '文章列表', noCache: true }
    },
    {
      path: 'add',
      component: () => import('@/view/article/create'),
      name: '新增文章',
      meta: { title: '新增文章', noCache: true }
    },
    // {
    //   path: 'mix-chart',
    //   component: () => import('@/views/charts/mix-chart'),
    //   name: 'MixChart',
    //   meta: { title: 'Mix Chart', noCache: true }
    // }
  ]
}

export default articleRouter
